package ar.edu.utn.frba.dds.tp.code.dateParser;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FormatoSimple extends Formato {
	public static FormatoSimple LATINOAMERICANO = new FormatoSimple("dd/MM/yyyy");
	
	private String formato;
	
	//Constructor
	public FormatoSimple(String formato) {
		this.formato = formato;
		this.setFormatter(new SimpleDateFormat(formato));
	}
	
	@Override
	public Date parse (String stringAParsear) {
		return this.parse(stringAParsear, this.formato);
	}
		
}